package com.interview.select;

public class DemoFour {
    private static int x =100;

    public static void main(String[] args) {
        DemoFour hs1 = new DemoFour();
        hs1.x++;
        System.out.println(x);
        DemoFour hs2 = new DemoFour();
        hs2.x++;
        System.out.println(x);
        DemoFour hs3 = new DemoFour();
        hs1.x++;
        System.out.println(x);
        DemoFour.x--;
        System.out.println(x);

    }

}
